package com.ruoyi.project.system.lotto.service;

import com.ruoyi.project.system.lotto.domain.RecordVo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.ruoyi.project.system.lotto.domain.LottoLogs;
import java.util.List;
import com.ruoyi.project.system.lotto.mapper.LottoLogsMapper;
import com.ruoyi.project.system.lotto.domain.LottoLogsExample;
@Service
public class LottoLogsService{

    @Resource
    private LottoLogsMapper lottoLogsMapper;

    
    public long countByExample(LottoLogsExample example) {
        return lottoLogsMapper.countByExample(example);
    }

    
    public int deleteByExample(LottoLogsExample example) {
        return lottoLogsMapper.deleteByExample(example);
    }

    
    public int deleteByPrimaryKey(Long id) {
        return lottoLogsMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(LottoLogs record) {
        return lottoLogsMapper.insert(record);
    }

    
    public int insertSelective(LottoLogs record) {
        return lottoLogsMapper.insertSelective(record);
    }

    
    public List<LottoLogs> selectByExample(LottoLogsExample example) {
        return lottoLogsMapper.selectByExample(example);
    }

    
    public LottoLogs selectByPrimaryKey(Long id) {
        return lottoLogsMapper.selectByPrimaryKey(id);
    }

    
    public int updateByExampleSelective(LottoLogs record,LottoLogsExample example) {
        return lottoLogsMapper.updateByExampleSelective(record,example);
    }

    
    public int updateByExample(LottoLogs record,LottoLogsExample example) {
        return lottoLogsMapper.updateByExample(record,example);
    }

    
    public int updateByPrimaryKeySelective(LottoLogs record) {
        return lottoLogsMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(LottoLogs record) {
        return lottoLogsMapper.updateByPrimaryKey(record);
    }

    public List<RecordVo> getRecords(Long userId) {
        return lottoLogsMapper.getRecords(userId);
    }
}
